<template>
    {{loading}}
    <div @click="lookMe()">点击</div>
</template>
<script lang="ts" setup>
    import {defineProps ,defineEmits } from "vue"
    defineProps({
        loading:{
            type:String,
            default:()=>{
                return "2222"
            }
        }
    })
    let emit = defineEmits(["lookMe"])
    function lookMe(){
        emit("look", "qweqwe")
    }
</script>